package my.jwds.p1791;

public class FindCenter {

    public static void main(String[] args) {

    }

    public int findCenter(int[][] edges) {
        if (edges[0][0] == edges[1][0] || edges[0][0] == edges[1][1]){
            return edges[0][0];
        }else{
            return edges[0][1];
        }
    }
}
